'use strict';

const BaseService = require('./base');
const modelName = 'Field';

class FieldService extends BaseService {
  constructor(ctx) {
    super(ctx, modelName);
  }

  getInclude() {
    return [{
      model: this.ctx.model.College,
      attributes: ['name'],
      include: [{
        model: this.ctx.model.School,
        attributes: ['name'],
      }],
    }];
  }
}

module.exports = FieldService;
